package com.demo.springcloud.service;

import org.springframework.web.bind.annotation.PathVariable;

import java.util.concurrent.TimeUnit;

/**
 * @author chenyuan
 * @date 2020/12/6 19:32
 */
public interface PaymentService {
	//成功
	public String paymentInfo_OK(Integer id);

	//失败
	public String paymentInfo_TimeOut(Integer id);

	// ========= 服务熔断 =========
	public String paymentCircuitBreaker(@PathVariable("id") Integer id);
}
